import QtQuick 1.0

Column {
    property alias title: titleText.text
    property alias value: valueText.text
    property bool isUrl: false
    width: parent.width
    Text{
        id:titleText
        width: parent.width
        text:"";color: "white";font{bold: true;pointSize: 20}
        wrapMode: Text.WrapAtWordBoundaryOrAnywhere
    }
    Text{
        id:valueText
        width: parent.width
        text:"";
        color:(!isUrl)?"white":"lightblue"
        font{pointSize: 16}
        font.underline: isUrl
        wrapMode: Text.WrapAtWordBoundaryOrAnywhere
        MouseArea{
            anchors.fill: parent
            onClicked: if(isUrl) Qt.openUrlExternally(valueText.text)
        }
    }

}
